package cn.aaalei.shorturl.mapper;

import cn.aaalei.shorturl.pojo.UrlLogging;
import cn.aaalei.shorturl.pojo.UrlMapping;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UrlMapper {
    int addUrlMapping(UrlMapping urlMapping);
    UrlMapping selectUrlMapping(String shortUrl);
    UrlMapping selectUrlMappingExist(String shortUrl,String formerUrl);
    int addUrlLogging(UrlLogging urlLogging);
}
